package day2.zuoye;

import java.util.Scanner;

public class Test07
{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入三门课的成绩");
        int a=input.nextInt();
        int b=input.nextInt();
        int c=input.nextInt();
        int avg,pjf;
        avg=a+b+c;
        pjf=avg/3;
        System.out.println("王菲的平均分为"+pjf+"总分为"+avg);


    }
}
